package com.wanmait.movie.common;

import lombok.Getter;

/**
 * ClassName: HttpCode
 * Package: com.wanmait.movie.common
 * Description:
 * 状态码
 * @Author Fengxd
 * @Create 2023/12/5 12:55
 * @Version 1.0
 */
@Getter
public enum HttpCode {

    // 参数错误
    PARAMETER_ERROR(400, ""),
    // 系统内部错误
    SYSTEM_ERROR(500, "请联系管理员或稍后再试"),
    // 登录失败
    LOGIN_FAILED(401, "登录失败，账号或密码错误");


    // 状态码
    private final int code;
    // 状态消息
    private final String msg;

    HttpCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
